package com.qianfeng.service.impl;

import com.qianfeng.entity.Department;
import com.qianfeng.mapper.DepartmentMapper;
import com.qianfeng.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getDepartmentList() {
        return departmentMapper.getDepartmentList();
    }

    @Override
    public Department getDepartmentById(Integer deptId) {
        return departmentMapper.getDepartmentById(deptId);
    }
}
